package com.xufang.cloud.business.base.controller;

//import com.xufang.cloud.business.base.entity.SysUser;
import com.xufang.cloud.business.base.entity.CostItem;
        import com.xufang.cloud.business.base.mapper.CostItemMapper;
//import com.xufang.cloud.business.base.mapper.SysUserMapper;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by xufan on 2018/11/16.
 */
@RestController
@RequestMapping("/test")
@Api(tags = "00",value = "测试",description = "测试")
public class TestController {

//    @Autowired
//    private UserInfoMapper userInfoMapper;
    @Autowired
    private CostItemMapper costItemMapper;
    @Autowired
//    private SysUserMapper sysUserMapper;

    @GetMapping("info")
    public String info(){
        return "2222";
    }
//    @GetMapping("/all")
//    public List<UserInfo> getAll(){
//        return userInfoMapper.selectAll();
//    }
//
    @GetMapping("/costItemList")
    public List<CostItem> CostItemList(){
        List<CostItem> list= this.costItemMapper.selectAll();
        return list;
    }

//    @GetMapping("/userList")
//    public List<SysUser> UserList(){
//        List<SysUser> list= this.sysUserMapper.selectAll();
//        return list;
//    }
}
